#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Created: Tue May 18 19:13:13 2010

from sys import argv
from PyQt4 import QtCore, QtGui

class Ui_Login_groupbox(QtGui.QGroupBox):
    def __init__(self, parent = None):
        super(Ui_Login_groupbox, self).__init__(parent)
        """setup Interface"""
        self.setupUi(self)
        
    def setupUi(self, Login_groupbox):
        Login_groupbox.setObjectName("Login_groupbox")
        Login_groupbox.resize(326, 178)
        Login_groupbox.setGeometry(QtCore.QRect(350, 200, 351, 171))
        self.gridLayout = QtGui.QGridLayout(Login_groupbox)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(Login_groupbox)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.txt_loginIP = QtGui.QLineEdit(Login_groupbox)
        self.txt_loginIP.setObjectName("txt_loginIP")
        self.gridLayout.addWidget(self.txt_loginIP, 0, 1, 1, 2)
        self.label_2 = QtGui.QLabel(Login_groupbox)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.txt_loginPassword = QtGui.QLineEdit(Login_groupbox)
        self.txt_loginPassword.setEchoMode(QtGui.QLineEdit.Password)
        self.txt_loginPassword.setObjectName("txt_loginPassword")
        self.gridLayout.addWidget(self.txt_loginPassword, 1, 1, 1, 2)
        self.btn_canclLogin = QtGui.QPushButton(Login_groupbox)
        self.btn_canclLogin.setObjectName("btn_canclLogin")
        self.gridLayout.addWidget(self.btn_canclLogin, 2, 1, 1, 1)
        self.btn_login = QtGui.QPushButton(Login_groupbox)
        self.btn_login.setObjectName("btn_login")
        self.gridLayout.addWidget(self.btn_login, 2, 2, 1, 1)
        
        self.retranslateUi(Login_groupbox)
        QtCore.QMetaObject.connectSlotsByName(Login_groupbox)

    def retranslateUi(self, Login_groupbox):
        Login_groupbox.setWindowTitle(QtGui.QApplication.translate("Login_groupbox", "GroupBox", None, QtGui.QApplication.UnicodeUTF8))
        Login_groupbox.setTitle(QtGui.QApplication.translate("Login_groupbox", "Login", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Login_groupbox", "IP Address", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Login_groupbox", "Password", None, QtGui.QApplication.UnicodeUTF8))
        self.btn_canclLogin.setText(QtGui.QApplication.translate("Login_groupbox", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
        self.btn_login.setText(QtGui.QApplication.translate("Login_groupbox", "Login..", None, QtGui.QApplication.UnicodeUTF8))
        ########## set tool tips ############
        self.txt_loginIP.setToolTip(QtGui.QApplication.translate("Form", "pass the ip for the host you want to administrate", None, QtGui.QApplication.UnicodeUTF8))
        self.txt_loginPassword.setToolTip(QtGui.QApplication.translate("Form", "pass the root password for the host you want to administrate", None, QtGui.QApplication.UnicodeUTF8))
        
if __name__ == '__main__':
    app = QtGui.QApplication(argv)
    abstract_window = Ui_Login_groupbox()
    abstract_window.show()
    app.exec_()
